package com.example;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "payment-service", fallback = PaymentFallbackService.class)
public interface PaymentServiceApi {

    @GetMapping(value = "/payment/pay/{id}")
    String payment(@PathVariable("id") Integer id);

}
